package com.ergou.easylive.admin;

import com.ergou.easylive.common.util.PasswordEncoder;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


/**
 * EasyLive 管理员端
 *
 * @author Er-Gou
 * @date 2025-09-15 22:46
 */
@SpringBootApplication
@MapperScan("com.ergou.easylive.**.mapper")
@Slf4j
public class EasyLiveAdminApplication {


    public static void main(String[] args) {
        SpringApplication.run(EasyLiveAdminApplication.class, args);

        log.info("================================管理员端启动成功================================");
        String encode = PasswordEncoder.encode("admin123456");
        log.info("管理员默认账号========>:admin");
        log.info("管理员默认未加密密码========>:admin123456");
        log.info("管理员默认加密密码========>:{}", encode);
    }
}
